#include "EngineFactory.h"


Engine* EngineFactory::CreateInstance(const type_info* x)
{
	if ((*x) == typeid(NormalEngine))
	{
		return new NormalEngine();
	}
	else if ((*x) == typeid(SportEngine))
	{
		return new SportEngine();
	}

	return NULL;
}
